﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="~/Content/js/jquery-1.8.2.js"></script>
</head>
<body>
    <div>
        <input id="btn_jsonp" type="button" value="请求Jsonp" />
    </div>
    <script type="text/javascript">
        $("#btn_jsonp").click(function () {
            $.ajax({
                url: "http://tjzheng.webapi.com/api/values?name=1",
                dataType: "jsonp",
                success: function (invokeResult) {
                    alert(invokeResult.length);
                }
            });
        });
    </script>
</body>
</html>
